package com.yvtian.config;

import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer;
import com.baomidou.mybatisplus.core.MybatisConfiguration;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBatisConfigurationCustomizer implements ConfigurationCustomizer {

    @Override
    public void customize(org.apache.ibatis.session.Configuration configuration) {
        MybatisConfiguration mybatisConfiguration = (MybatisConfiguration) configuration;
        mybatisConfiguration.setLogImpl(MyBatisPlusStdOutImpl.class);
    }
}
